package com.yunnuo.system.operlog.entity;

import com.yunnuo.system.comm.entity.IdEntity;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * @author 魏洪福（15064000912@163.com）
 * @create 2018-08-27-16:12
 */
@Entity
@Table(name="SYSMON_OPER_LOG")
public class OperLog extends IdEntity {



    /** 操作模块 */
    private String title;

    /** 操作业务类型 */
    private Integer businessType;

    /** 请求方法 */
    private String method;

    /** 操作人类别 */
    private Integer operatorType;

    /** 操作人员 */
    private String operName;

    /**
     * 操作人员中文名
     */
    private String operRealName;

    /** 部门名称 */
    private String deptName;

    /** 请求url */
    private String operUrl;

    /** 操作地址 */
    private String operIp;

    /** 操作地点 */
    private String operLocation;

    /** 请求参数 */
    private String operParam;

    /** 状态 0.失败；1.成功 */
    private Integer status;

    /** 请求消息 */
    private String message;

    /** 操作开始时间 */
    private Date operStartTime;
    /** 操作结束时间 */
    private Date operEndTime;

    /** 操作耗时 */
    private String duration;


    public String getTitle()
    {
        return title;
    }

    public void setTitle(String title)
    {
        this.title = title;
    }

    public Integer getBusinessType()
    {
        return businessType;
    }

    public void setBusinessType(Integer businessType)
    {
        this.businessType = businessType;
    }

    public String getMethod()
    {
        return method;
    }

    public void setMethod(String method)
    {
        this.method = method;
    }

    public Integer getOperatorType()
    {
        return operatorType;
    }

    public void setOperatorType(Integer operatorType)
    {
        this.operatorType = operatorType;
    }

    public String getOperName()
    {
        return operName;
    }

    public void setOperName(String operName)
    {
        this.operName = operName;
    }

    public String getDeptName()
    {
        return deptName;
    }

    public void setDeptName(String deptName)
    {
        this.deptName = deptName;
    }

    public String getOperUrl()
    {
        return operUrl;
    }

    public void setOperUrl(String operUrl)
    {
        this.operUrl = operUrl;
    }

    public String getOperIp()
    {
        return operIp;
    }

    public void setOperIp(String operIp)
    {
        this.operIp = operIp;
    }

    public String getOperLocation()
    {
        return operLocation;
    }

    public void setOperLocation(String operLocation)
    {
        this.operLocation = operLocation;
    }

    public String getOperParam()
    {
        return operParam;
    }

    public void setOperParam(String operParam)
    {
        this.operParam = operParam;
    }

    public Integer getStatus()
    {
        return status;
    }

    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Date getOperStartTime() {
        return operStartTime;
    }

    public void setOperStartTime(Date operStartTime) {
        this.operStartTime = operStartTime;
    }

    public Date getOperEndTime() {
        return operEndTime;
    }

    public void setOperEndTime(Date operEndTime) {
        this.operEndTime = operEndTime;
    }


    public String getOperRealName() {
        return operRealName;
    }

    public void setOperRealName(String operRealName) {
        this.operRealName = operRealName;
    }

    public String getDuration() {
        return duration;
    }

    public void setDuration(String duration) {
        this.duration = duration;
    }

    @Override
    public String toString() {
        return "OperLog{" +
                "title='" + title +
                ", businessType=" + businessType +
                ", method='" + method +
                ", operatorType=" + operatorType +
                ", operName='" + operName +
                ", operRealName='" + operRealName +
                ", deptName='" + deptName +
                ", operUrl='" + operUrl +
                ", operIp='" + operIp +
                ", operLocation='" + operLocation +
                ", operParam='" + operParam +
                ", status=" + status +
                ", message='" + message +
                ", operStartTime=" + operStartTime +
                ", operEndTime=" + operEndTime +
                ", duration='" + duration  +
                '}';
    }
}
